import Mock from "mockjs";
import warehouseApi from "./mockServeData/warehouse.js";
import ljluser from "./mockServeData/ljluser.js";

// 李金龙
// // 定义mock请求拦截
// Mock.mock('/api/warehouse/getData',function(){
//     // 拦截到请求后的处理逻辑
//     console.log('mock拦截到请求')
//     return []
// })
Mock.mock("/api/warehouse/getData", warehouseApi.getStatisticalData);

// 用户列表的数据
Mock.mock("/api/ljluser/add", "post", ljluser.createUser); // 添加用户
Mock.mock("/api/ljluser/edit", "post", ljluser.updateUser); // 修改用户
Mock.mock("/api/ljluser/del", "post", ljluser.deleteUser); // 删除用户
Mock.mock("/api/ljluser/getUser", ljluser.getUserList); // 添加列表
